#include "mmu_asm.h"

.align
.global set_L1_address
set_L1_address:
	STMFD SP!, {LR}
	MRC P15, 0, R0, C2, C0, 0 @in R0 sollte die L1-Adresse übergeben werden 
	LDMFD SP!, {LR}
	MOV PC, LR

.align
.global enable_MMU
enable_MMU:
	STMFD SP!, {R1, LR}
	@***kopiert aus TRM 80***
	MRC p15,0,R1,C1,C0,0	@read control register
	ORR R1, #0x1
	MCR p15,0,R1,C1,C0,0	@enable MMUs
	Fetch Flat
	Fetch Flat
	Fetch Translated
	@************************
	LDMFD SP!, {R1, LR}
	MOV PC, LR
